package com.yanqu.road.entity.activity.horserun.cross;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.List;
import java.util.Map;
import java.util.Set;

@FieldTypeAnnotation(tableName = "t_c_horse_run_union_data",desc = "小马快跑商会数据")
public class CrossHorseRunUnionData extends DataObject {

    @FieldTypeAnnotation(select = true,update = true,desc = "活动id")
    private int activityId;

    @FieldTypeAnnotation(select = true,update = true,desc = "分组id")
    private int groupId;

    @FieldTypeAnnotation(desc = "商会id",update = true)
    private String unionId;

    @FieldTypeAnnotation(desc = "商会等级")
    private int unionLevel;

    @FieldTypeAnnotation(desc = "总评价 商会小马最高加起来")
    private long totalGrade;

    @FieldTypeAnnotation(desc = "商会赛马各个场次总积分(成就用)")
    private Map<Integer,Long> totalAchievementScore;

    @FieldTypeAnnotation(desc = "所有参与成员列表")
    private Set<Long> joinMember;


    public int getActivityId() {
        return activityId;
    }
    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public int getGroupId() {
        return groupId;
    }
    public void setGroupId(int groupId) {
        if (this.groupId != groupId) {
            this.groupId = groupId;
            setOp(DataStatus.Update);
        }
    }

    public String getUnionId() {
        return unionId;
    }
    public void setUnionId(String unionId) {
        if (unionId == null){
            return;
        }
        if (this.unionId == null || !this.unionId.equals(unionId)) {
            this.unionId = unionId;
            setOp(DataStatus.Update);
        }
    }

    public int getUnionLevel() {
        return unionLevel;
    }
    public void setUnionLevel(int unionLevel) {
        if (this.unionLevel != unionLevel) {
            this.unionLevel = unionLevel;
            setOp(DataStatus.Update);
        }
    }

    public long getTotalGrade() {
        return totalGrade;
    }
    public void setTotalGrade(long totalGrade) {
        if (this.totalGrade != totalGrade) {
            this.totalGrade = totalGrade;
            setOp(DataStatus.Update);
        }
    }

    public java.util.Map<java.lang.Integer, java.lang.Long> getTotalAchievementScore() {
        return totalAchievementScore;
    }
    public void setTotalAchievementScore(java.util.Map<java.lang.Integer, java.lang.Long> totalAchievementScore) {
        if (null == totalAchievementScore){
            return;
        }
        if (this.totalAchievementScore == null || !this.totalAchievementScore.equals(totalAchievementScore)) {
            this.totalAchievementScore = totalAchievementScore;
            setOp(DataStatus.Update);
        }
    }

    public Set<Long> getJoinMember() {
        return joinMember;
    }
    public void setJoinMember(Set<Long> joinMember) {
        if (null == joinMember){
            return;
        }
        if (this.joinMember == null || !this.joinMember.equals(joinMember)) {
            this.joinMember = joinMember;
            setOp(DataStatus.Update);
        }
    }





}
